package com.ryqg.jiaofu.web.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ryqg.jiaofu.domain.pojo.PDFInfo;
import com.ryqg.jiaofu.domain.pojo.PDFView;
import com.ryqg.jiaofu.domain.vo.OperationVO;
import com.ryqg.jiaofu.domain.vo.PopularPdfVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface PDFMapper extends BaseMapper<PDFInfo> {
    List<PDFInfo> selectPDFList();

    PDFView selectViewByDocId(String docId);
    /**
     * 按下载次数排序，获取10条数据
     * */
    List<PopularPdfVO> popularPdfList();
    /**
     * 按下载次数排序，获取10条数据
     * */
    List<OperationVO> userActivity();
}
